// samsting : this file is auto create.

#include "Ram/2015-05-01/ListEntitiesForPolicyResponse.h"

namespace aliyun { namespace Ram {

ListEntitiesForPolicyResponse::ListEntitiesForPolicyResponse() {
}

const string& ListEntitiesForPolicyResponse::Group::GetGroupName(void) const {
  return GroupName_;
}

const string& ListEntitiesForPolicyResponse::Group::GetComments(void) const {
  return Comments_;
}

const string& ListEntitiesForPolicyResponse::Group::GetAttachDate(void) const {
  return AttachDate_;
}

const string& ListEntitiesForPolicyResponse::User::GetUserId(void) const {
  return UserId_;
}

const string& ListEntitiesForPolicyResponse::User::GetUserName(void) const {
  return UserName_;
}

const string& ListEntitiesForPolicyResponse::User::GetDisplayName(void) const {
  return DisplayName_;
}

const string& ListEntitiesForPolicyResponse::User::GetAttachDate(void) const {
  return AttachDate_;
}

const string& ListEntitiesForPolicyResponse::Role::GetRoleId(void) const {
  return RoleId_;
}

const string& ListEntitiesForPolicyResponse::Role::GetRoleName(void) const {
  return RoleName_;
}

const string& ListEntitiesForPolicyResponse::Role::GetArn(void) const {
  return Arn_;
}

const string& ListEntitiesForPolicyResponse::Role::GetDescription(void) const {
  return Description_;
}

const string& ListEntitiesForPolicyResponse::Role::GetAttachDate(void) const {
  return AttachDate_;
}

const std::vector<ListEntitiesForPolicyResponse::Group>& ListEntitiesForPolicyResponse::GetGroups(void) const {
  return Groups_;
}

const std::vector<ListEntitiesForPolicyResponse::User>& ListEntitiesForPolicyResponse::GetUsers(void) const {
  return Users_;
}

const std::vector<ListEntitiesForPolicyResponse::Role>& ListEntitiesForPolicyResponse::GetRoles(void) const {
  return Roles_;
}

const char* ListEntitiesForPolicyResponse::BaseKey(void) {
  return "ListEntitiesForPolicyResponse";
}

void ListEntitiesForPolicyResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Groups__length = 0;
  UnmarshallerInt(Groups__length, response_map, "ListEntitiesForPolicyResponse.Groups.Length");
  if(Groups__length >= 0) {
    Groups_.resize(Groups__length);
    for(int i1 = 0; i1 < Groups__length; i1++) {
      UnmarshallerString(Groups_[i1].GroupName_, response_map, "ListEntitiesForPolicyResponse.Groups["+string_ValueOfInt(i1)+"].GroupName");
      UnmarshallerString(Groups_[i1].Comments_, response_map, "ListEntitiesForPolicyResponse.Groups["+string_ValueOfInt(i1)+"].Comments");
      UnmarshallerString(Groups_[i1].AttachDate_, response_map, "ListEntitiesForPolicyResponse.Groups["+string_ValueOfInt(i1)+"].AttachDate");
    } // for(int i1 = 0; i1 < Groups__length; i1++) {
  } // if(Groups__length >= 0) {

  int Users__length = 0;
  UnmarshallerInt(Users__length, response_map, "ListEntitiesForPolicyResponse.Users.Length");
  if(Users__length >= 0) {
    Users_.resize(Users__length);
    for(int i1 = 0; i1 < Users__length; i1++) {
      UnmarshallerString(Users_[i1].UserId_, response_map, "ListEntitiesForPolicyResponse.Users["+string_ValueOfInt(i1)+"].UserId");
      UnmarshallerString(Users_[i1].UserName_, response_map, "ListEntitiesForPolicyResponse.Users["+string_ValueOfInt(i1)+"].UserName");
      UnmarshallerString(Users_[i1].DisplayName_, response_map, "ListEntitiesForPolicyResponse.Users["+string_ValueOfInt(i1)+"].DisplayName");
      UnmarshallerString(Users_[i1].AttachDate_, response_map, "ListEntitiesForPolicyResponse.Users["+string_ValueOfInt(i1)+"].AttachDate");
    } // for(int i1 = 0; i1 < Users__length; i1++) {
  } // if(Users__length >= 0) {

  int Roles__length = 0;
  UnmarshallerInt(Roles__length, response_map, "ListEntitiesForPolicyResponse.Roles.Length");
  if(Roles__length >= 0) {
    Roles_.resize(Roles__length);
    for(int i1 = 0; i1 < Roles__length; i1++) {
      UnmarshallerString(Roles_[i1].RoleId_, response_map, "ListEntitiesForPolicyResponse.Roles["+string_ValueOfInt(i1)+"].RoleId");
      UnmarshallerString(Roles_[i1].RoleName_, response_map, "ListEntitiesForPolicyResponse.Roles["+string_ValueOfInt(i1)+"].RoleName");
      UnmarshallerString(Roles_[i1].Arn_, response_map, "ListEntitiesForPolicyResponse.Roles["+string_ValueOfInt(i1)+"].Arn");
      UnmarshallerString(Roles_[i1].Description_, response_map, "ListEntitiesForPolicyResponse.Roles["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Roles_[i1].AttachDate_, response_map, "ListEntitiesForPolicyResponse.Roles["+string_ValueOfInt(i1)+"].AttachDate");
    } // for(int i1 = 0; i1 < Roles__length; i1++) {
  } // if(Roles__length >= 0) {

}


} } // namespace aliyun { namespace Ram {

// end of file 
